﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.ChangePasswordModel>" %>

<div id="changepassowrd">
<br />
 <h1>更改密码</h1>
<br /><br />


    <% using (Ajax .BeginForm("ChangePassword",new AjaxOptions {UpdateTargetId="changepassowrd"})) { %>

     <%: Html.ValidationSummary (true) %>

                <table id="tablenoframe" style =" margin:0 20%">
                <tr>
                    <td class="label"><%: Html.LabelFor(m => m.OldPassword) %></td>
                    <td class="editor-label">
                    <%: Html.PasswordFor(m => m.OldPassword) %>
                    <%: Html.ValidationMessageFor(m => m.OldPassword) %>
                    </td>
                </tr>

                <tr>
                <td class="label"><%: Html.LabelFor(m => m.NewPassword) %></td>
                <td class="editor-field">
                    <%: Html.PasswordFor(m => m.NewPassword) %>
                    <%: Html.ValidationMessageFor(m => m.NewPassword) %>
                </td>
                </tr>

                <tr>
                <td class="label"><%: Html.LabelFor(m => m.ConfirmPassword) %></td>
                <td class="editor-field">
                    <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </td>
                </tr>
                <tr>
                <td></td><td><input type="submit" value="更改密码" style ="margin-left:80px;position:absolute" /></td>
                </tr>
                </table>
         
                

        
    
    <% } %>

    </div>